﻿using System;
using System.Collections.Generic;
using System.Text;
using Cashier_Utils;

namespace Cashier_Model
{
    [Table(Tablename = "member_recharge")]
    public class MemberRecharge: BaseModel
    {
        private Int64 id;

        [Table(Columnname="id", Columntype="bigint", Iskey=true, Iscondition=true, Isdeletefield=true, Fieldothername="r")]
        public Int64 Id
        {
            get { return id; }
            set { id = value; }
        }

        private String enterpriseNo;

        [Table(Columnname = "enterprise_no", Columntype = "varchar", Iscondition = true, Isdeletefield = true, Fieldothername="r")]
        public String EnterpriseNo
        {
            get { return enterpriseNo; }
            set { enterpriseNo = value; }
        }

        private String storeNo;

        [Table(Columnname = "store_no", Columntype = "varchar", Iscondition = true, Fieldothername="r")]
        public String StoreNo
        {
            get { return storeNo; }
            set { storeNo = value; }
        }

        private String transNo;

        [Table(Columnname = "trans_no", Columntype="varchar", Iscondition=true, Fieldothername="r")]
        public String TransNo
        {
            get { return transNo; }
            set { transNo = value; }
        }

        private String memberNo;

        [Table(Columnname = "member_no", Columntype="varchar", Iscondition=true, Isdeletefield=true, Fieldothername="r")]
        public String MemberNo
        {
            get { return memberNo; }
            set { memberNo = value; }
        }

        private Decimal money;

        [Table(Columnname="money", Columntype="decimal", Isupdatefield=true)]
        public Decimal Money
        {
            get { return money; }
            set { money = value; }
        }

        private Decimal giftMoney;

        [Table(Columnname="gift_money", Columntype="decimal", Isupdatefield=true)]
        public Decimal GiftMoney
        {
            get { return giftMoney; }
            set { giftMoney = value; }
        }

        private Decimal payMoney;

        [Table(Columnname="pay_money", Columntype="decimal", Isupdatefield=true)]
        public Decimal PayMoney
        {
            get { return payMoney; }
            set { payMoney = value; }
        }

        private DateTime rechargeTime;

        [Table(Columnname = "recharge_time", Columntype="datetime", Isupdatefield=true)]
        public DateTime RechargeTime
        {
            get { return rechargeTime; }
            set { rechargeTime = value; }
        }

        private String note;

        [Table(Columnname="note", Columntype="varchar", Isupdatefield=true)]
        public String Note
        {
            get { return note; }
            set { note = value; }
        }

        private String adminUsername;

        [Table(Columnname = "admin_username", Columntype = "varchar", Iscondition = true, Fieldothername="r")]
        public String AdminUsername
        {
            get { return adminUsername; }
            set { adminUsername = value; }
        }

        private String adminName;

        [Table(Columnname = "admin_name", Columntype = "varchar", Iscondition = true, Fieldothername="r")]
        public String AdminName
        {
            get { return adminName; }
            set { adminName = value; }
        }

        private DateTime createTime;

        [Table(Columnname = "create_time", Columntype="datetime")]
        public DateTime CreateTime
        {
            get { return createTime; }
            set { createTime = value; }
        }

        private String name;

        [Table(Columnname="name", Columntype="varchar", Iscondition=true, Conditiontype=ConditionType.LIKE_SUFFIX, Fieldothername="m")]
        public String Name
        {
            get { return name; }
            set { name = value; }
        }
    }
}
